package spring.demo.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import spring.demo.service.ServiceDemoIntf;

import javax.validation.constraints.NotBlank;

@RestController
@RequestMapping("/demo")
@Validated
public class DemoController {

    @Value("${zms.database.version}")
    final String databaseVersion = null;

    @RequestMapping("/1")
    public void hello(@NotBlank String id) {
        System.out.println("hello world");
    }
}
